#include <ncurses.h>
#include <cstdlib>

#include "Curses.h"

#include "Tile.h"
#include "Level.h"

Level::Level() {
	m_tilemap = new Tilemap(40, 20);
	
	Tile floor = { {'.', Curses::GREEN}, false };
	Tile wall = { {'#', Curses::DARK_GRAY }, true};
	m_tilemap->fill(floor);
	for (int i = 0; i < 50; i++)
		m_tilemap->set(rand()%40, rand()%20, wall);
}

Level::~Level() {
	delete m_tilemap;
}